home *** CD-ROM | disk | FTP | other *** search
/ WINMX Assorted Textfiles / Ebooks.tar / Text - Tech - Tweaks - Modem-LAN.txt < prev    next >
Text File  |  2004-03-04  |  15KB  |  178 lines

  1. Modem/LAN Tweak Guide
  2. Introduction
  3.  
  4. Over the past several weeks, I have received several requests for a LAN tweaking guide, and since the Modem and LAN networking are so closely related, I decided to integrate both subjects into this guide. Hopefully this guide will assist you in tweaking your network, be it a LAN or the Internet, to the highest level possible. Remember, this is my first foray into the LAN scene, so if you find mistakes, or have some other tweaks, be sure to let me know!
  5.  
  6. Drivers
  7.  
  8. The first step to successfully tweaking your network is downloading the newest drivers. For links to tons of drivers, check out the Drivers Headquarters. Another alternative would be to simply search the manufacturer's website; however, it is often faster to find the link on DHQ.
  9.  
  10. Dial-Up Adapter and TCP/IP Protocol Settings
  11.  
  12. Open up the Control Panel (once again), and double-click the Network icon. Under the Configuration tab, select the Dial-Up Adapter and click Properties. Go to the Bindings tab and uncheck all boxes except the TCP/IP box. Select the Advanced tab and set Enable Point To Point IP to Yes, IP Packet Size to Large (normally I would recommend Auto, but due to a bug it can cause problems with certain MTU settings above 576), and Record Log File to No. If you mostly use the Internet to download files and view webpages, enable IPX Header Compression, otherwise disable it. Next, select the TCP/IP protocol (if you have multiple copies of the protocol installed, you may need to follow these steps several times) and click Properties. Select the WINS Configuration tab, and choose the Disable WINS Resolution option. Click the DNS configuration tab, and select Disable DNS. Go to the Bindings tab. Uncheck all the boxes.
  13.  
  14. Note: Sometimes, certain ISP's will give you specific instructions for your network settings. If your ISP is one of these, you will probably be better off using their settings... they know their particular system better than anyone else could.
  15.  
  16. Next, open your Dial-up networking folder and go to the server-types tab. Make sure that TCP/IP is enabled (and compression if you want web pages to load faster, and don't care about ping), and everything else is disabled (unless you have specific instructions from your ISP otherwise). This will help you connect to your ISP faster.
  17.  
  18. Optimizing Other TCP/IP settings
  19.  
  20. Windows 95 Modem:
  21.  
  22. After drivers, optimizing your network settings is the most important step in tweaking your LAN or modem. I personally recommend using iSpeed from High Mountain Software for tweaking your modem. Not only have I found it the easiest program to use, but it is the only program I have found that supports the NDI Cachesize setting.
  23.  
  24. My personal favorite settings are:
  25.  
  26. MTU: 576
  27.  
  28. MSS: 536
  29.  
  30. RWIN Multiplier: 4
  31.  
  32. TTL: 128
  33.  
  34. NDI CacheSize: 16
  35.  
  36. MTU (Maximum Transmittable Unit): This setting is imperative for optimal packet transmission, for if it is set correctly, it will stop the information from being broken up during the transfer.
  37.  
  38. MSS (Maximum Segment Size): This is the largest amount of data that can be sent in one transmitted unit. The rest of the packet is reserved for the header, which includes destination information as well as other information. An unconfirmed rumor that is going around recently states that Windows 98 doesn't use this setting because it determines the MSS dynamically. However, even if this is correct, inputting this setting will in no way be detrimental to the system.
  39.  
  40. RWIN (Receive Window) Multiplier: This setting determines how many packets are transmitted before the system determines the integrity of the data transfer. Raising this setting will increase modem speed at the price of possible packet loss. Generally, a good multiplier is 4x, but if you have particularly clean, or bad, phone lines, you may want to adjust the setting accordingly.
  41.  
  42. TTL (Time to Live): This setting determines how many "hops" the computer will allow before it closes the connection. A low number, such as 32, will slightly increase performance, but a higher number, such as 128, will allow you to reach sites that are having connection problems (such as when a pipeline goes down and the information has to be rerouted through another system).
  43.  
  44. MTU Auto Discover: Even through you calculate your MTU using your ISP, sometimes other sites will be connected to the Internet using an even lower MTU. In these situations, Auto Discover comes into play. It will determine the optimal MTU for that particular site so that your information has to be fragmented as little as possible. NOTE: This is only a Windows 98 feature - it doesn't do anything for Windows 95 users, so leave it disabled.
  45.  
  46. Black Hole Detect: This setting enables the computer to determine some reasons for packet loss. This setting, however, is not recommended because it will dramatically lower performance. Better to just leave it off.
  47.  
  48. NDI Cachesize: Very little is known about this setting except that it is very important in Windows NT environments. Whether or not this setting does anything for Windows 98 users at all is unknown, but 16 is the default and that is what I recommend. If you find that you have better results with another setting, let me know.
  49.  
  50. Determining Your MTU
  51.  
  52. Depending on your particular modem/line/ISP, you may have more success with other settings. There is, however, an easy way to determine your optimal MTU, which should make your tinkering a lot less complicated. Before you start though, you need to change your IP Packet Size to Large. Due to a bug in Win98, Auto won't work properly for an MTU over 576. Start by opening a dos prompt. Then enter the command "ping -f -l [trial MTU number] www.[your-isp].com". Start with 576 and go up or down depending on the message (if it tells you that the packets are being fragmented, you need to go down - you want the highest setting that doesn't cause packet fragmentation). Then, to derive your MSS from your MTU number... take MTU-40 and insert that value for MSS. The other settings will probably require a bit more tinkering though.
  53.  
  54. Windows 98 Modem:
  55.  
  56. Windows 98 made leaps and bounds when it comes to its TCP/IP stack (as the driver protocol is referred to), but there are still some problems with it. Particularly when using it in conjunction with iSpeed. If you already have iSpeed installed, use the program to reset the windows defaults and uninstall the software. Then follow the following steps to tweak your TCP/IP settings.
  57.  
  58. - Enter the control panel and start up the Network applet
  59.  
  60. - Click on the icon representing your network card and click on the Properties button
  61.  
  62. - Go to the Advanced Tab
  63.  
  64. - Make sure that IP Packet Size is set to Large
  65.  
  66. - If you mostly use the internet for downloading files and viewing webpages, enable IP Header Compression - otherwise, leave it off.
  67.  
  68. Why is this so easy? Well, Windows 98 has a new feature called MTU Auto discover. This will automatically determine the optimal MTU (and will derive all of the other settings from that) on connect. The problem is, if you set the IP Packet size to something smaller than large (auto assumes 576, even though it shouldn't), you limit your maximum MTU because Windows assumes that that setting is as high as it needs to go. Also, if you set the settings manually (through the registry, as iSpeed does), you lose Windows ability to dynamically choose the optimal settings on connect as well - and servers have been known to change these settings frequently to handle more traffic. My local ISP even changes the settings daily to allow more users, because of the heinous bottleneck between Malaysia and California. Special thanks goes out to Rob at BXBoards for the heads up on this issue.
  69.  
  70. Windows 9x Network - If you use TCP/IP as one of your LAN protocols as well as your Internet Protocol, you may have several different TCP/IP profiles to tweak. However, iSpeed only allows the user to tweak profiles that deal with your Dial-Up Adapter (Modem). To tweak your TCP/IP profile for a network, open the network applet in the control panel and follow the following steps.
  71.  
  72. - Click on the icon representing your network card and click on the Properties button
  73.  
  74. - Go to the Advanced Tab
  75.  
  76. - Make sure that IP Packet Size is set to Large
  77.  
  78. - If you mostly use the internet for downloading files and viewing webpages, enable IP Header Compression - otherwise, leave it off.
  79.  
  80. Other Network Protocols
  81.  
  82. There are two other network protocols that are commonly used today, NetBEUI and IPX/SPX. Personally, I have found that IPX is the faster of the two protocols, so we will focus on optimizing that. First, make sure it is installed. Go to the network applet and [Add] a new [Protocol]. You will find the IPX/SPX compatible protocol under [Microsoft]. After you have added the protocol, go to it's properties and click on the NetBIOS tab. Unless you are using software that specifically uses NetBIOS, you will want to disable this option. Then go to the Advanced tab. Try out the following settings:
  83.  
  84. Force Even Packet Lengths - No or Not Present
  85.  
  86. Frame Type - Auto
  87.  
  88. Maximum Connections - Not Present
  89.  
  90. Maximum Sockets - Not Present
  91.  
  92. Network Address - 0 or as set by Network Administrator
  93.  
  94. Source Routing - 16
  95.  
  96. Note: These are experimental settings. This is the first time I've really tried to optimize a LAN. Use at your own risk. Any input would be appreciated - provided you are nice about it! ;)
  97.  
  98. FIFO Buffers, Modem, and Port settings for Modems
  99.  
  100. Here are some of the other settings that will help you maximize modem performance.
  101.  
  102. First, change your FIFO settings. To do this, right click on My Computer. Go to Properties. Then click the Device Manager tab at the top. Locate Modem, double click on it, then double click your modem.
  103.  
  104. Click the CONNECTION tab at the top of the properties section. Click the PORT SETTINGS button. Now slide the FIFO buffers all the way right. If things don't work correctly when you attempt to use your modem then you should change this back.
  105.  
  106. Now from the other menu click ADVANCED. Make sure your modem is using hardware flow control, use compression, and error control for best results. It is also important for the flow control setting to be set to hardware, because software mode is more taxing on your CPU then hardware mode is.
  107.  
  108. Go back to Device Manager. Double click the Ports section, then double click the Communication Port your modem uses.
  109.  
  110. It will bring up a similar Properties section. Click the Port Settings tab. Change Bits Per Second to 115200 or higher. Change flow control to Hardware. Then click the Advanced... button and it will bring up the same FIFO menu as above. Slide the bar all the way to the right again.
  111.  
  112. Modem Cache
  113.  
  114. Modems have a relatively small on-board cache and data buffer. The following settings allow the modem to access some of the system RAM to use as cache during times of high modem activity. Go into your system.ini file. Locate the following: [386Enh]
  115.  
  116. If your modem is on Com 1, on the line directly below the [386Enh] add this:
  117.  
  118. Com1Irq4Buffer=1024
  119.  
  120. If your modem is on Com 2, on the line directly below the [386Enh] add this:
  121.  
  122. Com2Irq3Buffer=1024
  123.  
  124. If your modem is on Com 3, on the line directly below the [386Enh] add this:
  125.  
  126. Com3Irq4Buffer=1024
  127.  
  128. If your modem is on Com 4, on the line directly below the [386Enh] add this:
  129.  
  130. Com4Irq3Buffer=1024
  131.  
  132. If you have a modem that uses a non-standard COM Port/IRQ configuration, change the setting accordingly.
  133.  
  134. Registry Settings
  135.  
  136. There are a few registry settings that are impossible to reach without actually diving into regedit itself, and these are a few of them. First off, under HKEY_LOCAL_MACHINE, there are a series of keys named \System\CurrentControlSet\Services\Net\000X (where X is a number between 1 and 9). Under these keys, there is a value with the name SLOWNET. Obviously, this is a bad thing, so you want to change the value from the default of 01 to 00. Another key, \System\CurrentControlSet\Services\VxD\COMBUFF, has a value in it called Start, which is disabled. Change the 00 to 01. And a third key, \System\CurrentControlSet\Services\VxD\VCACHE, also has a value called start which should be changed from 00 to 01.
  137.  
  138. Initialization strings
  139.  
  140. To customize your modem even more you should use an initialization string that fits your needs. For more information on this, check out your modem's manual. It will have all the info you need. I personally use this string:
  141.  
  142. &C1&D2E1Q0V1X4 S7=55 S11=55 S0=0
  143.  
  144. You can try using this string if you want to.
  145.  
  146. Here is how you use initialization strings:
  147.  
  148. Go to your START menu, go to Settings, go to Control Panel. Double click "Modems". Click Properties. Click the Connection tab at the top. Go to Advanced. In the box under Extra Settings type your new initialization string.
  149.  
  150. Also, stop by this site for optimized modem initialization strings for nearly every modem out there. This can REALLY boost performance. Or, if you feel technically inclined, you can grab the white papers for your modem (usually you can grab these from the manufacturers website if you do a little digging) and you can write your own init string.
  151.  
  152. Firmware
  153.  
  154. Modems and Network cards alike can benefit from the newest firmware. Firmware is like the BIOS for a piece of hardware (like a modem) that can be flash upgraded. V.90 is one type of firmware upgrade, but not the only kind. Firmware updates can generally be found on the manufacturers website, and further information about V.90 specific firmware updates is available below.
  155.  
  156. Upgrading your modem to V.90
  157.  
  158. Many people bought 56K modems when they first came out as X2 or KFlex, without considering the update to a standard that was bound to come. Luckily, most modems are flash upgradeable to the V.90 standard. It is a simple process that takes about 15 to 20 minutes.
  159.  
  160. Check out the V.90 Upgrade FAQ on 56K.com here. It tells all you need to know about the procedure itself. Make sure that your ISP supports V.90 as well.
  161.  
  162. Basically all you must do is flash your modem's BIOS w/ the V.90 protocol and (for best results) update your modem's drivers.
  163.  
  164. Does your modem manufacturer have the V.90 upgrade ready to download? Check out 56K.com's Modem Link Board. Download the flash update and the newest drivers and you should be well on your way.
  165.  
  166. For example, I had the Motorola VoiceSURFR External 56K. The modem supported KFlex. My ISP did not have KFlex lines, so I checked the Motorola site, and sure enough the V.90 upgrade was there. After installing it and flashing the BIOS, I was very impressed at the connection speed: 52000 bps. Downloads are almost always around 6.0 K/sec +, where before (as KFlex, using 33.6 lines) they only hit 3.0 K/sec.
  167.  
  168. V.90 is a great protocol as long as it is fully supported by both your ISP and your modem. However, in some circumstances people may actually want to disable V.90. Reasons could be caused by several things, including problems connecting to online games etc.
  169.  
  170.  
  171.  
  172. Booting CD Rom System Cleanup CPU & Motherboard Hard Disk Sound Card 
  173. Modem Monitor Mouse System Enhancements Windows Shell 
  174.  
  175.  
  176.  
  177. Some part of this document is taken from www.tweak3d.net and www.pcguide.com.
  178.